﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UI_SATT
{
    public partial class FrmPopUp : Form
    {
        String Evento, Torneo;
        FrmCierreTorneos FrmCierre;
        public FrmPopUp(string _Evento, string _Torneo)
        {
            InitializeComponent();
            Evento = _Evento;
            Torneo = _Torneo;
            lblEvento.Text = Evento;
            lblTorneo.Text = Torneo;
        }

        private void BtnAgregar_Click(object sender, EventArgs e)
        {
            if (FrmCierre == null || FrmCierre.IsDisposed)
            {
                FrmCierre = new FrmCierreTorneos(Evento, Torneo);
                if (FrmCierre.ShowDialog() == DialogResult.OK)
                    this.Close();
            }
            else
                FrmCierre.BringToFront();
        }



    }
}
